package edu.tjut.tjutcommunity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import edu.tjut.tjutcommunity.entity.Academy;
import edu.tjut.tjutcommunity.entity.Postlogs;
import edu.tjut.tjutcommunity.entity.User;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-15
 */
public interface PostlogsService extends IService<Postlogs> {
    /**
     * 插入用户记录
     * @param user 用户信息
     * @param pid  帖子id
     * @param degree   级别：0浏览，1评论，2收藏点赞
     * @return
     */
    boolean insert(User user,Integer pid,Integer degree);

    List<Postlogs> getPostlogsHistory(String specificDayFormat);

    boolean delete(User user, Integer pid,Integer degree);

    Set<Integer> getHasViewId(User user);
}
